package com.atguigu.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author ct_start
 * @create 2021 -08 -07
 **/
@SpringBootApplication
// 定义包扫描规则,扫外部的包
@ComponentScan(basePackages = {"com.atguigu"})
@EnableDiscoveryClient //nacos 的服务注册
@EnableFeignClients // 开启服务调用 ,各个微服务模块之间的调用
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class,args);
    }
}
